﻿@model PoolInfoCreateOrUpdateViewModel
@{
    ViewData["Title"] = "Update";
}
<div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>修改矿池</legend>
        </fieldset>
        <form class="layui-form" action="/PoolInfo/Update" method="post">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池Id</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="Id" autocomplete="off" class="layui-input" readonly="readonly" >
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池名称</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="PoolName" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">矿池Logo</label>
                <div class="layui-input-inline">
                    <input type="text" asp-for="PoolLogo" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池地址</label>
                    <div class="layui-input-inline">
                        @Html.DropDownList("PoolArea", Model.AvaliablePoolAreas)
                        <span asp-validation-for="PoolArea" class="text-danger"></span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池交易时间</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="PoolPayTime" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池URL</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="PoolAddress" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池状态</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="PoolState" autocomplete="off" class="layui-input" lay-verify="number">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="Sort" autocomplete="off" class="layui-input" lay-verify="number">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池简介</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="PoolDescription" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">关键字</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="KeyWords" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">矿池评分</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="PoolScore" autocomplete="off" class="layui-input" lay-verify="number">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">是否可见</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="IsVisable" autocomplete="off" class="layui-input" lay-verify="number">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" type="submit">立即提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form();
    });
</script>